import java.util.ArrayList;
import java.util.List;
import java.util.Random;

class MyArray{
    public Object[] objects = new Object[10];
    public void set(int pos,Object val){
        objects[pos] = val;
    }
    public Object get(int pos){
        return objects[pos];
    }
}
public class TestDemo {
    public static void main2(String[] args) {
        int[] array = new int[1_0000];
        Random random = new Random();
        for (int i = 0; i < array.length; i++) {
            array[i] = random.nextInt(1000);
        }

    }
    public static void main1(String[] args) {
        MyArray myArray = new MyArray();
        myArray.set(0,"hu");
        myArray.set(1,10);
        String str = (String) myArray.get(0);

    }
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
//        myLinkedList.createList();

//        boolean flg = myLinkedList.contains(56);
//        System.out.println(flg);
//        myLinkedList.size();
//        int a = myLinkedList.size();
//        System.out.println(a);
        myLinkedList.addLast(12);
        myLinkedList.addLast(23);
        myLinkedList.addFirst(34);
        myLinkedList.display();


    }
}
